#ifndef __RGB_2_COLOR__
#define __RGB_2_COLOR__

#include <stdint.h>
#include "PNGdec.h"
#include "soft_dev.h"

#define COLOR_WITHE		3
#define COLOR_BLACK		0
#define COLOR_RED		1

#ifndef MAX
#define MAX(a, b)		(((a) > (b)) ? (a) : (b))
#endif

#ifndef MIN
#define MIN(a, b)		(((a) < (b)) ? (a) : (b))
#endif

// uint8_t rgb2color(uint8_t r, uint8_t g, uint8_t b);
void png_draw_callback(PNGDRAW *draw);

#endif
